package com.etc.cloud.controller;

import com.etc.cloud.service.IMessageProvider;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author kalista
 * @Description
 * @Date 2020/8/25  16:26
 **/
@RestController
@Slf4j
public class SendMessageController {

    @Autowired
    private IMessageProvider iMessageProvider;


    @GetMapping("send")
    public String sendmessage(String message){
        iMessageProvider.send(message);
        return "success";
    }


}
